package com.foo.calidad.persist.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Version;

@Entity
@Table(name = "TIPOS_PRODUCTOS")
@NamedQueries({ @NamedQuery(name = "TipoProductoEntity.findAll", query = "SELECT t FROM TipoProductoEntity t") })
public class TipoProductoEntity {

	@Id
	@SequenceGenerator(name = "SEQ_TIPOS_PRODUCTOS", sequenceName = "GEN_TIPOS_PRODUCTOS_ID", allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_TIPOS_PRODUCTOS")
	private Long id;

	@Version
	private int version;

	private String descripcion;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public String getDescripcion() {
		return descripcion;
	}

	public void setDescripcion(String descripcion) {
		this.descripcion = descripcion;
	}

}
